<?php
// $Id: biblio_handler_filter_contributor_uid.inc,v 1.1.2.3 2010/11/06 00:20:14 rjerome Exp $
/**
 * Filter handler for contributors
 */
class biblio_handler_filter_contributor_uid extends views_handler_filter_many_to_one {
  function get_value_options() {
    $result = db_query("SELECT u.name, lastname, firstname, initials, cid, drupal_uid 
              FROM {biblio_contributor_data} cd
              INNER JOIN {users} u on u.uid=cd.drupal_uid
              WHERE cd.drupal_uid > 0 
              ORDER by lastname, firstname");
    $this->value_options = array();
    while ($row = db_fetch_object($result)) {
      $this->value_options[$row->cid] =  "$row->lastname, $row->firstname $row->initials ($row->name)";
    }
  }
}
